package com.whj.ems.entity;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;




@Entity
@Table(name="company",catalog="emsystem")
public class Company implements Serializable
{
	private static final long serialVersionUID = -3670148740856215176L;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int gid;
	private String gname;
	@Type(type="text")
	private String gcontent;
	private String gemail;
	private String gtelephone;
	private String gfuzeren;
	private String gaddress;
	private String gQQ;
	private String gchuanzhen;
	private String gusername;
	private String gpassword;
	private String gyuming;
	private String gtype;
	private String gstartTime;
	private String gendTime;
	
	public String getGstartTime()
	{
		return gstartTime;
	}
	public void setGstartTime(String gstartTime)
	{
		this.gstartTime = gstartTime;
	}
	public String getGendTime()
	{
		return gendTime;
	}
	public void setGendTime(String gendTime)
	{
		this.gendTime = gendTime;
	}
	@JsonIgnore
	@OneToMany(cascade=CascadeType.ALL,mappedBy="company",fetch=FetchType.LAZY)
	private Set<User> users;
	public int getGid()
	{
		return gid;
	}
	public void setGid(int gid)
	{
		this.gid = gid;
	}
	public String getGname()
	{
		return gname;
	}
	public void setGname(String gname)
	{
		this.gname = gname;
	}
	public String getGcontent()
	{
		return gcontent;
	}
	public void setGcontent(String gcontent)
	{
		this.gcontent = gcontent;
	}
	public String getGemail()
	{
		return gemail;
	}
	public void setGemail(String gemail)
	{
		this.gemail = gemail;
	}
	public String getGtelephone()
	{
		return gtelephone;
	}
	public void setGtelephone(String gtelephone)
	{
		this.gtelephone = gtelephone;
	}
	public String getGfuzeren()
	{
		return gfuzeren;
	}
	public void setGfuzeren(String gfuzeren)
	{
		this.gfuzeren = gfuzeren;
	}
	public String getGaddress()
	{
		return gaddress;
	}
	public void setGaddress(String gaddress)
	{
		this.gaddress = gaddress;
	}
	public String getgQQ()
	{
		return gQQ;
	}
	public void setgQQ(String gQQ)
	{
		this.gQQ = gQQ;
	}
	public String getGchuanzhen()
	{
		return gchuanzhen;
	}
	public void setGchuanzhen(String gchuanzhen)
	{
		this.gchuanzhen = gchuanzhen;
	}
	public Set<User> getUsers()
	{
		return users;
	}
	public void setUsers(Set<User> users)
	{
		this.users = users;
	}
	public String getGusername()
	{
		return gusername;
	}
	public void setGusername(String gusername)
	{
		this.gusername = gusername;
	}
	public String getGpassword()
	{
		return gpassword;
	}
	public void setGpassword(String gpassword)
	{
		this.gpassword = gpassword;
	}
	public String getGyuming()
	{
		return gyuming;
	}
	public void setGyuming(String gyuming)
	{
		this.gyuming = gyuming;
	}
	public String getGtype()
	{
		return gtype;
	}
	public void setGtype(String gtype)
	{
		this.gtype = gtype;
	}
	
}
